<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("phpdev", $con);
$sql="INSERT INTO person (Your Name, Your Hangye, Your Email)
VALUES($_POST[Your Name],$_POST[Your Hangye],$_POST[Your Email])";
if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "您的ID号是：".$_POST["id"]."<br/>";
echo "您的姓名号是：".$_POST["name"]."<br/>";
mysql_close($con);
?>

